package com.aqiang.day0417_mvp;

import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.alibaba.android.arouter.launcher.ARouter;
import com.aqiang.common.RouterPath;

import java.lang.ref.WeakReference;

public class MainActivity extends AppCompatActivity implements View.OnClickListener {
    private TextView mActMainTv;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        initView();
    }

    private void initView() {
        mActMainTv = (TextView) findViewById(R.id.act_main_tv);

        mActMainTv.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        ARouter.getInstance().build(RouterPath.HOME_ACTIVITY).navigation();
    }
}
